<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 
<html>
  <head>
      <title>core:math:threshold</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link rel="stylesheet" href="nbdocs:/net/neilcsmith/praxis/live/help/docs/help.css" type="text/css">
  </head>
  <body>
    <h1>core:math:threshold</h1>
    <p>Takes a number on its input port and sends it from its <code>out-high</code>
       port if greater than or equal to the <code>threshold</code> value, or from
       the <code>out-low</code> port if below the threshold value.</p>
    <h2>Ports</h2>
    <table border="1" cellpadding="5" cellspacing="0">
        <thead>
            <tr>
                <th>ID</th>
                <th>Type</th>
                <th>Direction</th>
                <th>Values</th>
                <th>Description</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td><b>in</b></td>
                <td>control</td>
                <td>in</td>
                <td>number</td>
                <td>Input value.</td>
            </tr>
            <tr>
                <td><b>out-low</b></td>
                <td>control</td>
                <td>out</td>
                <td>number</td>
                <td>Value if lower than threshold.</td>
            </tr>
            <tr>
                <td><b>out-high</b></td>
                <td>control</td>
                <td>out</td>
                <td>number</td>
                <td>Value if higher than (or equal to) threshold.</td>
            </tr>
            <tr>
                <td><b>threshold</b></td>
                <td>control</td>
                <td>in</td>
                <td>number</td>
                <td>Value of threshold.</td>
            </tr>
        </tbody>
    </table>
    <h2>Controls</h2>
    <table border="1" cellpadding="5" cellspacing="0">
        <thead>
            <tr>
                <th>ID</th>
                <th>Type</th>
                <th>Input</th>
                <th>Output</th>
                <th>Default</th>
                <th>Description</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td><b>threshold</b></td>
                <td>property</td>
                <td>number</td>
                <td></td>
                <td>0</td>
                <td>Value of threshold.</td>
            </tr>

        </tbody>
    </table>
  </body>
</html>
